<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_base_major_project".
 *
 * @property string $id id
 * @property string $major_dict_id 专业目录id
 * @property string $name 名称
 * @property int $major_code 编码
 * @property string $desc 简介
 * @property string $publishing_org 发布机构
 * @property string $type 类型（国家资源库专业和非国家资源库专业）
 * @property string $status 状态
 * @property string $url 网址
 * @property string $note 备注
 * @property int $del_flag 删除标示
 * @property string $create_by 创建人
 * @property string $create_time 创建时间
 * @property string $update_by 更新人
 * @property string $update_time 更新时间
 * @property string $pinyin
 */
class TBaseMajorProject extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_base_major_project';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['major_dict_id', 'major_code', 'publishing_org', 'del_flag', 'create_by', 'update_by'], 'integer'],
            [['create_time', 'update_time'], 'safe'],
            [['name'], 'string', 'max' => 128],
            [['desc', 'url', 'note', 'pinyin'], 'string', 'max' => 255],
            [['type', 'status'], 'string', 'max' => 64],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'major_dict_id' => 'Major Dict ID',
            'name' => 'Name',
            'major_code' => 'Major Code',
            'desc' => 'Desc',
            'publishing_org' => 'Publishing Org',
            'type' => 'Type',
            'status' => 'Status',
            'url' => 'Url',
            'note' => 'Note',
            'del_flag' => 'Del Flag',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
            'pinyin' => 'Pinyin',
        ];
    }
}
